﻿<Controls:MetroWindow  x:Class="iBackupExplorer.Pages.NewsViewer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" 
        Title="NEWS" Height="300" Width="500" SaveWindowPosition="True" 
        WindowStartupLocation="CenterScreen" ShowIconOnTitleBar="False" TitleCaps="True">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <TextBlock DockPanel.Dock="Top" HorizontalAlignment="Center" Foreground="#FF41B1E1" FontSize="30" FontFamily="Segoe UI" Text="{Binding Path=Title}"/>

        <Grid DockPanel.Dock="Bottom" >
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="55"/>
            </Grid.RowDefinitions>
            <TextBlock Margin="5" VerticalAlignment="Center" HorizontalAlignment="Center" Cursor="Hand">            
                 <Hyperlink Name="hylLink" Click="HylLink_OnClick" NavigateUri="{Binding Path=Link}">
                    <Run FontFamily="Segoe UI" Text="{Binding Path=Link}"/>
                </Hyperlink>
            </TextBlock>
        </Grid>
        <TextBlock Text="{Binding Path=Body}" Margin="5" FontFamily="Segoe UI" FontSize="20" />
    </DockPanel>
</Controls:MetroWindow>
